<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>123456</title>
<style>
body {
	background-image: url("1.jpg");
	background-repeat: no-repeat;
	background-size: 50% 50%;
	background-position: 50% 30%;
}

.d1 {
	border: 3px solid red;
	width: 1500px;
	height: 1000px;
	background-image: url("1.jpg");
	background-repeat: no-repeat; /* 是否重复 */
	background-attachment: fixed; /* 是否固定 */
	background-size: 50% 50%; /* 大小 */
	background-position: 50% 30%; /* 位置 */
}
</style>
</head>
<body>
	<div class="d1"></div>
</body>
</html>